--
-- Author:      feilong
-- DateTime:    2019-10-23 17:19:33
-- Description: 节点起动入口
-- nodeserver 负责节点间消息转发,管理注册到此的节点


local skynet = require "skynet"
local sharedata = require("skynet.sharedata")

g.service_name = "main"

skynet.start(function()
	skynet.error("_________222")
	print("___________main__1_")


	local server_config = dofile(skynet.getenv("server_config"))

	print("server_config", server_config)
	
	local node_info = server_config.node_info
	--skynet控制台
	skynet.uniqueservice("debug_console", node_info.debug_port)

	local service = skynet.uniqueservice("config/config_service")	
	g.Message():callService(service, "start")


	local data = g.Cfg():getData("activity")
	g.Log():debug(data)

	local service = skynet.uniqueservice("manager_service")	
	g.Message():callService(service, "start")



	



	skynet.exit()


end)

